package biz.obake.team.touchprotector.notice;

import java.util.Calendar;
import java.util.Date;

public class CampaignNotice extends DonationNotice {
    private boolean isExpired() {
        Calendar instance = Calendar.getInstance();
        instance.set(2020, 6, 31);
        instance.add(5, 1);
        return new Date().after(instance.getTime());
    }

    public boolean isAlerted() {
        if (isExpired()) {
            return false;
        }
        return super.isAlerted();
    }

    public boolean isVisible() {
        if (isExpired()) {
            return false;
        }
        return super.isVisible();
    }
}
